#include "tss.h"

tss tsss[TSS_COUNT];
tss tarea_inicial;
tss tarea_idle;


tss* obtener_entrada_tss(){
	static unsigned int indiceTSS = 0;
	static unsigned int entradasLibres =TSS_COUNT;
	
	tss *offset =(tss *)-1;
	
	if(entradasLibres--)
		offset = &tsss[indiceTSS++];
	
	return offset;
	
}

